//    Copyright (C) Kherty.  All rights reserved.
using System.Collections.Generic;

namespace OpenLS.Spreadsheet.Extensibility
{
    public interface IRange
    {
        IEnumerable<ICell> GetNonEmptyCells();

        ICell FirstCell{ get;}

        int ColumnSpan{ get;}

        int RowSpan{ get;}
        ICell this[int row, int column]{ get;}

        int RowIndex{ get;}

        int ColumnIndex{ get;}

        int Areas{ get;}
        IRange GetArea(int areaIndex);
        IWorksheet Worksheet { get; } 

        IRange GetRowRange(int index, RangeType type);
        IRange GetColumnRange(int index, RangeType type);
    }
    public enum RangeType
    {
        Static,
        Dynamic

    }
}
